home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / ext / standard / url_scanner_ex.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-26  |  2.0 KB  |  55 lines

  1. /*
  2.   +----------------------------------------------------------------------+
  3.   | PHP version 4.0                                                      |
  4.   +----------------------------------------------------------------------+
  5.   | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  6.   +----------------------------------------------------------------------+
  7.   | This source file is subject to version 2.02 of the PHP license,      |
  8.   | that is bundled with this package in the file LICENSE, and is        |
  9.   | available at through the world-wide-web at                           |
  10.   | http://www.php.net/license/2_02.txt.                                 |
  11.   | If you did not receive a copy of the PHP license and are unable to   |
  12.   | obtain it through the world-wide-web, please send a note to          |
  13.   | license@php.net so we can mail you a copy immediately.               |
  14.   +----------------------------------------------------------------------+
  15.   | Authors: Sascha Schumann <sascha@schumann.cx>                        |
  16.   +----------------------------------------------------------------------+
  17. */
  18.  
  19. #ifndef URL_SCANNER_EX_H
  20. #define URL_SCANNER_EX_H
  21.  
  22. PHP_MINIT_FUNCTION(url_scanner_ex);
  23. PHP_MSHUTDOWN_FUNCTION(url_scanner_ex);
  24. PHP_RSHUTDOWN_FUNCTION(url_scanner_ex);
  25. PHP_RINIT_FUNCTION(url_scanner_ex);
  26.  
  27. char *url_adapt_ext_ex(const char *src, size_t srclen, const char *name, const char *value, size_t *newlen);
  28.  
  29. char *url_adapt_single_url(const char *url, size_t urllen, const char *name, const char *value, size_t *newlen);
  30.  
  31. #include "php_smart_str_public.h"
  32.  
  33. typedef struct {
  34.     /* Used by the mainloop of the scanner */
  35.     smart_str tag; /* read only */
  36.     smart_str arg; /* read only */
  37.     smart_str val; /* read only */
  38.     smart_str buf;
  39.  
  40.     /* The result buffer */
  41.     smart_str result;
  42.  
  43.     /* The data which is appended to each relative URL */
  44.     smart_str q_name;
  45.     smart_str q_value;
  46.  
  47.     char *lookup_data;
  48.     int state;
  49.     
  50.     /* Everything above is zeroed in RINIT */
  51.     HashTable *tags;
  52. } url_adapt_state_ex_t;
  53.  
  54. #endif
  55.